package com.atguigu.srb.core.service;

import com.atguigu.srb.core.pojo.VO.BorrowInfoApprovalVO;
import com.atguigu.srb.core.pojo.entity.BorrowInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * 借款信息表 服务类
 * </p>
 *
 * @author ZLHao
 * @since 2021-07-12
 */
public interface BorrowInfoService extends IService<BorrowInfo> {

    Long getBorrowAmount(Long userId);

    void save(BorrowInfo borrowInfo, Long userId);

    Integer getBorrowInfoStatus(Long userId);

    List<BorrowInfo> listAll();

    HashMap<String, Object> showById(Long id);

    void approval(BorrowInfoApprovalVO borrowInfoApprovalVO);
}
